package mypractice;

public class Work6 {
    public static void main(String[] args) {
        MySale mobilePhoneSales=new MySale();
        mobilePhoneSales.name="手机";
        mobilePhoneSales.sale=218000;
        mobilePhoneSales.prin();

        MySale haierRefrigerator=new MySale();
        haierRefrigerator.name="海尔冰箱";
        haierRefrigerator.sale=3000;
        haierRefrigerator.prin();

        MySale headShoulders=new MySale();
        headShoulders.name="海飞丝";
        headShoulders.sale=30;
        headShoulders.prin();
    }

}

class MySale{
    String name;
    int sale;//售价

    public void prin(){
        System.out.print(name+"  ");
        System.out.println(sale);
    }
}
